﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SeoWebSite.BLL;
using Newtonsoft.Json.Linq;

public partial class index : System.Web.UI.Page
{
    protected OS os = new OS();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (!os.session_exists())
            {
                Response.Redirect("login.html");
            }
            else
            {
                os.init();
            }
        }
    }

//    <?php
//require_once('server/os.php');

//if(!class_exists('os')){
//    die('Server os class is missing!');
//}else{
//    $os = new os();

//    if(!$os->session_exists()){
//        header("Location: login.html");
//    }else{
//        $os->init();
//?>
}